#home {
  width: 100vw;
  height: 100vh;
  background-color: #0a0a0a;
  overflow-x: hidden;
}

.sapce {
  width: 100vw;
  height: 15vh;
}

#scroll-container {
  height: 60vh;
  width: 100vw;
  overflow: hidden;
  background-color: turquoise;
  position: relative;
}

#scroll-images {
  display: flex;
  flex-direction: column;
  height: auto;
  animation: scroll-vertical 10s steps(5) infinite;
}

#scroll-images img {
  width: 100vw;
  height: 80vh;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes scroll-vertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-400vh);
  }
}

#aim {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aimBox {
  width: 60vw;
  height: 30vh;
  background-color: wheat;
  margin: 2%;
  border-radius: 20px;
  padding: 1%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.para {
  margin-top: 2%;
}

#principal {
  width: 100vw;
  height: 46vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#principal_img {
  width: 20vw;
  border-radius: 10px;
  transition: transform 2s;
}

#principal_img:hover {
  transform: translateX(-100px);
  /* moves left */
  cursor: pointer;
}

#info_box {
  width: 40vw;
  height: 20vh;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Show box when image is hovered */
#principal_img:hover+#info_box {
  opacity: 1;
}

.sam {
  width: 100vw;
  height: 100vh;
  background-color: #10d434;
  margin-top: 1%;
}

@media (max-width: 700px) {
  #home {
    height: 99vh;
  }

  .aimBox {
    height: 40vh;
    min-width: 50vh;
    font-size: 15px;
  }

  #principal {
    flex-direction: column;
    margin-bottom: 40%;
  }

  #principal_img {
    margin-top: 40%;
    width: 50vw;
  }

  #principal_img:hover {
    transform: translateX(0px);
  }

  #info_box {
    width: 90vw;
    margin: 5%;
    opacity: 1;
  }

  #scroll-container {
    height: 40vh;
    width: 100vw;
    background-color: #0a0a0a;
  }

  #scroll-images img {
    width: 100vw;
    height: 40vh;
  }

}